//
//  WCFileWarning.m
//  WabbitCode
//
//  Created by William Towe on 4/17/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCFileWarning.h"
#import "WCBuildMessage.h"


@implementation WCFileWarning
- (id)initWithBuildMessage:(WCBuildMessage *)bm; {
	if (!(self = [super init]))
		return nil;
	
	_buildMessage = bm;
	
	return self;
}

+ (WCFileWarning *)fileWarningWithBuildMessage:(WCBuildMessage *)bm; {
	return [[[[self class] alloc] initWithBuildMessage:bm] autorelease];
}

@dynamic toolTip;
- (NSString *)toolTip {
	return [_buildMessage messageText];
}
@end
